import java.util.Scanner;

public class StringProcessing {
	private static int StrNumber(char s1,String str1){
		int num=0;
		char[] chars = str1.toCharArray();
		for(int i = 0; i < chars.length; i++)
		{
		    if(s1 == chars[i])
		    {
		       num++;
		    }
		    
		}
		return num;
		}
	
	public static void main(String[] args) {
		
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入字符串：");
		String str1 = sc.next();
		
		char c='C';
		char e='E';
		char o='O';
		
		int num1=StrNumber(c,str1);
		int num2=StrNumber(e,str1);
		int num3=StrNumber(o,str1);
		String result="";
		
		
		do{
			if(num1>0){
				result= result+'C';
				num1--;
			}
			if(num2>0){
				result+='E';
				num2--;
			}
			if(num3>0){
				result+='O';
				num3--;
			}
		}
		while(num1>0||num2>0||num3>0);
		
		System.out.println("输出的结果是："+result);
		// TODO Auto-generated method stub

	}
	

}
